<?php

class M_JS_Builder {
    private $scripts = array();

    public function addScript($scriptName){
        if(!in_array($scriptName, $this->scripts))
            $this->scripts[] = $scriptName;
    }
}